﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace FridgeManagerApp
{
    public class LPersonnel : WPersonnel
    {
        private bool isChoose;
        public bool IsChoose
        {
            get
            {
                return isChoose;
            }
            set
            {
                isChoose = value;
                RaisePropertyChanged("IsChoose");
            }
        }

        private String pesonnelGroupName;
        public String PesonnelGroupName
        {
            get
            {
                return pesonnelGroupName;
            }
            set
            {
                pesonnelGroupName = value;
                RaisePropertyChanged("PesonnelGroupName");
            }
        }

        private String personnelGroupSelected;
        public String PersonnelGroupSelected
        {
            get
            {
                return personnelGroupSelected;
            }

            set
            {
                personnelGroupSelected = value;
                RaisePropertyChanged("PersonnelGroupSelected");
            }
        }


        private ObservableCollection<String> personnelGroup = new ObservableCollection<String>();
        public ObservableCollection<String> PersonnelGroup
        {
            get
            {
                return personnelGroup;
            }

            set
            {
                personnelGroup = value;
                RaisePropertyChanged("PersonnelGroup");
            }
        }

        public LPersonnel()
        {
            IsChoose = false;
            PersonnelUID = -1;
            ID = "";
            Password = "";
            PersonnelGroupUID = -1;
            PesonnelGroupName = "";
            Name = "";
            Head = "";
            Mobile = "";
            WebChat = "";
            CreateTime = DateTime.Now.ToString();
            PersonnelGroupSelected = PesonnelGroupName;
        }
    }
}
